<template>
	<view>
		<view style="padding: 50rpx 30rpx;" v-html="agreement.content"></view>
	</view>
</template>

<script>
	import { getUserAgreement } from '@/api/user';
	export default {
		data() {
			return {
				agreement: ''
			}
		},
		onLoad(option) {
			getUserAgreement(option.id).then((res)=>{
				this.agreement = res.data;
				uni.setNavigationBarTitle({
					title: res.data.title
				})
			}).catch((err)=>{
				uni.showToast({title:err,icon:'none'})
			})
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
